/**
 * MainWindowSingleton.java
 * 
 * @author Beatrice Bacelli
 * @author Luca Bedogni
 * @author Silvia Righini
 */
package unibo.lsb.graphic;

/**
 * Singleton for {@link MainWindow}
 */
public class MainWindowSingleton {

	private static MainWindowSingleton mws;
	private static MainWindow mainWindow;

	private MainWindowSingleton() {
		mainWindow = new MainWindow();
	}

	public static MainWindow getMainWindow() {
		return mainWindow;
	}

	public static MainWindowSingleton getInstance() {
		if (mws == null) {
			mws = new MainWindowSingleton();
		}
		return mws;
	}

}
